/* 现代简约论文搜索页面样式 */

/* 全局容器 */
.modern-search-container {
  min-height: 100vh;
  background: #ffffff;
  position: relative;
  overflow-x: hidden;
}

.modern-search-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

/* 搜索英雄区域 */
.search-hero {
  position: relative;
  z-index: 1;
  padding: 80px 24px 60px;
  text-align: center;
}

.search-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.search-title-section {
  margin-bottom: 48px;
}

.search-hero-icon {
  font-size: 64px;
  color: #667eea;
  margin-bottom: 24px;
  display: block;
  filter: none;
}

.search-hero-title {
  color: #333333 !important;
  font-size: 48px !important;
  font-weight: 700 !important;
  margin-bottom: 16px !important;
  text-shadow: none;
  letter-spacing: -0.5px;
}

.search-hero-subtitle {
  color: rgba(51, 51, 51, 0.8);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 0;
}

/* 搜索主区域 */
.search-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.search-input-wrapper {
  width: 100%;
  max-width: 600px;
}

.modern-search-input {
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
  backdrop-filter: blur(10px);
  border: none !important;
}

.modern-search-input .ant-input-search {
  background: rgba(255, 255, 255, 0.95) !important;
  border: none !important;
  height: 64px !important;
}

.modern-search-input .ant-input-affix-wrapper {
  background: transparent !important;
  border: none !important;
  height: 64px !important;
  border-radius: 16px 0 0 16px !important;
  padding: 0 24px !important;
}

.modern-search-input .ant-input {
  background: transparent !important;
  border: none !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #333 !important;
  height: 64px !important;
  line-height: 64px !important;
}

.modern-search-input .ant-input::placeholder {
  color: rgba(102, 126, 234, 0.8) !important;
  font-weight: 400 !important;
}

.modern-search-input .ant-input-group-addon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  border-radius: 0 16px 16px 0 !important;
  padding: 0 !important;
}

.search-btn {
  background: transparent !important;
  border: none !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  height: 64px !important;
  padding: 0 32px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.search-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
  color: white !important;
}

/* 搜索控制区域 */
.search-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.search-mode-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(102, 126, 234, 0.1);
  backdrop-filter: none;
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.search-mode-switch .ant-typography {
  color: #333333 !important;
  margin: 0 !important;
  font-weight: 500;
  text-shadow: none;
}

.control-btn {
  background: rgba(102, 126, 234, 0.1) !important;
  backdrop-filter: none !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
  color: #333333 !important;
  border-radius: 12px !important;
  height: 44px !important;
  padding: 0 20px !important;
  font-weight: 500 !important;
  text-shadow: none !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.control-btn:hover {
  background: rgba(102, 126, 234, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.4) !important;
  color: #667eea !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.control-btn.active {
  background: #667eea !important;
  color: white !important;
  border-color: #667eea !important;
}

/* 进度区域 */
.progress-section {
  padding: 0 24px;
  margin-top: -20px;
  position: relative;
  z-index: 2;
}

/* 结果区域 */
.results-section {
  padding: 40px 24px;
  position: relative;
  z-index: 2;
}

.results-card {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 24px;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.results-info h4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 700 !important;
}

.results-controls .sort-select {
  min-width: 160px;
}

.sort-select .ant-select-selector {
  border-radius: 12px !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(10px) !important;
  height: 40px !important;
  transition: all 0.3s ease !important;
}

.sort-select .ant-select-selector:hover {
  border-color: #667eea !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* 论文项样式 */
.paper-item-modern {
  padding: 32px !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.08) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background: transparent !important;
}

.paper-item-modern:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%) !important;
  transform: translateY(-2px);
}

.paper-item-modern:last-child {
  border-bottom: none !important;
}

.paper-content {
  width: 100%;
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 24px;
}

.paper-title {
  flex: 1;
  margin: 0 !important;
}

.paper-title a {
  color: #1a1a1a !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  transition: all 0.3s ease !important;
  display: block;
}

.paper-title a:hover {
  color: #667eea !important;
  transform: translateX(4px);
}

.paper-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(102, 126, 234, 0.15) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  color: #667eea !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.action-btn:hover {
  background: #667eea !important;
  color: white !important;
  border-color: #667eea !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.action-btn.favorited {
  background: #ff4757 !important;
  color: white !important;
  border-color: #ff4757 !important;
}

.action-btn.favorited:hover {
  background: #ff3742 !important;
  border-color: #ff3742 !important;
}

.paper-meta {
  margin-bottom: 16px;
  color: rgba(0, 0, 0, 0.75) !important;
  font-size: 14px;
  font-weight: 500;
}

.paper-meta .anticon {
  color: #667eea;
  margin-right: 6px;
}

.paper-abstract {
  color: rgba(0, 0, 0, 0.85) !important;
  line-height: 1.6 !important;
  margin-bottom: 20px !important;
  font-size: 15px;
}

.paper-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-tag {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
  border: 1px solid rgba(102, 126, 234, 0.2) !important;
  color: #667eea !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.keyword-tag:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border-color: transparent !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

/* 空状态 */
.empty-section {
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.empty-section .ant-empty {
  color: rgba(51, 51, 51, 0.6);
}

.empty-section .ant-empty-description {
  color: rgba(51, 51, 51, 0.6) !important;
  text-shadow: none !important;
}

/* 筛选抽屉 */
.filter-drawer .ant-drawer-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
  backdrop-filter: blur(20px);
}

.filter-drawer .ant-drawer-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.15) !important;
}

.filter-drawer .ant-drawer-title {
  color: #667eea !important;
  font-weight: 600 !important;
}

/* 模态框样式 */
.settings-modal .ant-modal-content,
.details-modal .ant-modal-content {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 16px !important;
  border: 1px solid rgba(102, 126, 234, 0.1) !important;
}

.settings-modal .ant-modal-header,
.details-modal .ant-modal-header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1) !important;
  border-radius: 16px 16px 0 0 !important;
}

.settings-modal .ant-modal-title,
.details-modal .ant-modal-title {
  color: #667eea !important;
  font-weight: 600 !important;
}

/* Tabs 样式 */
.ant-tabs-tab {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(102, 126, 234, 0.15) !important;
  border-radius: 12px 12px 0 0 !important;
  margin-right: 8px !important;
  transition: all 0.3s ease !important;
}

.ant-tabs-tab:hover {
  background: rgba(102, 126, 234, 0.1) !important;
  border-color: rgba(102, 126, 234, 0.3) !important;
}

.ant-tabs-tab-active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-color: transparent !important;
}

.ant-tabs-tab-active .ant-tabs-tab-btn {
  color: white !important;
  font-weight: 600 !important;
}

.ant-tabs-content-holder {
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 0 16px 16px 16px !important;
  border: 1px solid rgba(102, 126, 234, 0.1) !important;
  padding: 24px !important;
}

.ant-tabs-ink-bar {
  display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .search-hero {
    padding: 60px 16px 40px;
  }
  
  .search-hero-title {
    font-size: 36px !important;
  }
  
  .search-hero-icon {
    font-size: 48px;
  }
  
  .search-input-wrapper {
    max-width: 100%;
  }
  
  .modern-search-input .ant-input-search,
  .modern-search-input .ant-input-affix-wrapper,
  .modern-search-input .ant-input,
  .search-btn {
    height: 56px !important;
  }
  
  .search-controls {
    flex-direction: column;
    gap: 12px;
  }
  
  .results-section {
    padding: 24px 16px;
  }
  
  .results-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 24px 20px;
  }
  
  .paper-item-modern {
    padding: 24px 20px !important;
  }
  
  .paper-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .paper-actions {
    justify-content: flex-start;
  }
  
  .empty-section {
    padding: 60px 16px;
  }
}

@media (max-width: 480px) {
  .search-hero {
    padding: 40px 12px 30px;
  }
  
  .search-hero-title {
    font-size: 28px !important;
  }
  
  .search-hero-subtitle {
    font-size: 16px;
  }
  
  .modern-search-input .ant-input-search,
  .modern-search-input .ant-input-affix-wrapper,
  .modern-search-input .ant-input,
  .search-btn {
    height: 48px !important;
  }
  
  .search-btn {
    padding: 0 20px !important;
    font-size: 14px !important;
  }
  
  .results-section {
    padding: 20px 12px;
  }
  
  .paper-item-modern {
    padding: 20px 16px !important;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.modern-search-container {
  animation: fadeInUp 0.6s ease-out;
}

.results-card {
  animation: slideInRight 0.5s ease-out;
}

.paper-item-modern {
  animation: fadeInUp 0.4s ease-out;
  animation-fill-mode: both;
}

.paper-item-modern:nth-child(1) { animation-delay: 0.1s; }
.paper-item-modern:nth-child(2) { animation-delay: 0.15s; }
.paper-item-modern:nth-child(3) { animation-delay: 0.2s; }
.paper-item-modern:nth-child(4) { animation-delay: 0.25s; }
.paper-item-modern:nth-child(5) { animation-delay: 0.3s; }

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* 加载状态优化 */
.ant-spin-container {
  transition: opacity 0.3s ease;
}

.ant-spin-blur {
  opacity: 0.7;
  filter: blur(1px);
}

/* 表单元素优化 */
.ant-input,
.ant-input-number,
.ant-select-selector {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ant-input:focus,
.ant-input-number:focus,
.ant-select-focused .ant-select-selector {
  border-color: #667eea !important;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
}

/* 按钮优化 */
.ant-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3) !important;
}

/* 标签优化 */
.ant-tag {
  border-radius: 6px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

/* 分割线优化 */
.ant-divider {
  border-color: rgba(102, 126, 234, 0.15) !important;
}

/* 复选框和开关优化 */
.ant-checkbox-checked .ant-checkbox-inner {
  background-color: #667eea !important;
  border-color: #667eea !important;
}

.ant-switch-checked {
  background-color: #667eea !important;
}

/* 进度条优化 */
.ant-progress-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* 消息提示优化 */
.ant-message {
  z-index: 9999;
}

.ant-message-notice-content {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(102, 126, 234, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}